package April._19.work8;

import java.io.Serial;
import java.io.Serializable;

/**
 *
 */
public class User implements Serializable {
    @Serial
    private static final long serialVersionUID = 7018120093917129330L;
    int id;
    String name;
    String mobile;
    Address address;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", mobile='" + mobile + '\'' +
                ", address=" + address +
                '}';
    }

    public User(int id, String name, String mobile) {
        this.id = id;
        this.name = name;
        this.mobile = mobile;
    }

    public User(int id, String name, String mobile, Address address) {
        this.id = id;
        this.name = name;
        this.mobile = mobile;
        this.address = address;
    }
}
